package labrom.usage;


/**
 * This is a Usage Data Item. It represents a single action occurrence
 * in the client application.
 * 
 * @author Romain Laboisse
 *
 */
public class Udi {
	
	
	/**
	 * Time stamp when the action occurred. 
	 */
	private long timestamp;
	
	/**
	 * Action type ID.
	 */
	private long typeId;



	public long getTimestamp() {
		return timestamp;
	}

	public void setTimestamp(long timestamp) {
		this.timestamp = timestamp;
	}

	public long getTypeId() {
		return typeId;
	}

	public void setTypeId(long typeId) {
		this.typeId = typeId;
	}

	
	public void setTimestampNow() {
		setTimestamp(System.currentTimeMillis());
	}
}
